// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  css: [
    'element-plus/dist/index.css',
  ],
  // plugins: [
  //   // 其他插件
  //   { src: '~/public/tinymce/zh_CN.js', mode: 'client' }
  // ],
  // ssr:false,
  compatibilityDate: '2024-04-03',
  devtools: { enabled: true },
  vite: {
    css: {
      preprocessorOptions: {
        //全局配置样式 scss
        scss: {
          additionalData: '@use "@/assets/styles/default.scss" as *;' // 注意文件路径要配成自己的
        }
      }
    }
  },
  devServer: {
    host: '0.0.0.0', // 允许在局域网使用
    port: 3000
  }
})
